package com.ruoyi.erp.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.erp.domain.ErpProject;
import com.ruoyi.erp.mapper.ErpProjectMapper;
import com.ruoyi.erp.service.IErpProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS(value="slave")
public class ErpProjectServiceImpl extends ServiceImpl<ErpProjectMapper,ErpProject> implements IErpProjectService {
    @Autowired
    private ErpProjectMapper erpProjectMapper;

    @Override
    public List<ErpProject> selectErpProjectList() {
        return erpProjectMapper.getERPProject();
    }
}
